<?php

use think\migration\Seeder;

class Role extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            [
                'name' => '管理员',
                'mark' => 'admin',
                'auth' => 1
            ]
        ];

        $role = $this->table('role');
        $role->insert($data)->save();
    }
}